// 定义首页接口
import instance  from "@/utils/request"
import exp from "constants"
export function getBannerData(data?:null){
  return instance({
    url:'/banner/list',
    method:'get',
    params:data
  })
}

// 定义产品分类列表接口
export function getCategoryData(data:{
  count:number,
  limitNum:number
}){
  return instance({
    url:'/pro/list',
    method:'get',
    params:data
  })
}

// 定义秒杀接口
export function getSecKillData(data:{
  count:number,
  limitNum:number
}
){
  return instance({
    url:'/pro/seckilllist',
    method:'get',
    params:data
  })
}